fix: remove runtime dependency installation#136
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes hidden runtime environment mutation from optional SDK paths.
pip installhelpers with clear optional-extra errors.datafog download-model ...guidance.local_files_only=Trueduring normal SDK use, while preserving the explicit CLI download path.torch/transformersat runtime and loads Donut model artifacts from local cache only.pysparkto thedistributedextra so Spark install guidance is accurate.Validation
.venv313/bin/python -m black --check ...passed for changed Python files..venv313/bin/python -m pytest tests/test_runtime_dependency_safety.py tests/test_donut_lazy_import.py tests/test_gliner_annotator.py tests/test_engine_api.py tests/test_client.py -qpassed: 55 passed, 2 expected fallback warnings..venv313/bin/python -m pytest tests/ -m "not slow" --ignore=tests/test_image_service.py --ignore=tests/test_ocr_integration.py --ignore=tests/test_spark_integration.py --ignore=tests/test_text_service_integration.py -qpassed: 516 passed, 10 skipped, 291 deselected, 19 xfailed..venv313/bin/python setup.py egg_infopassed, with existing setuptools license-classifier warning..venv313/bin/python -m pip install --dry-run -e ".[distributed]"resolved and showedpysparkincluded in the distributed extra..venv313/bin/python -m pytest tests/test_spark_integration.py -qskipped cleanly without installing PySpark..venv313/bin/python -m pip checkpassed.git diff --checkpassed.Note:
tests/test_ocr_integration.pycannot collect in this core-only venv becausePILis intentionally absent; OCR integration remains an optional-profile test.